package cn.iocoder.yudao.module.yyzx.dal.mysql.nurse_level;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.yyzx.dal.dataobject.nurse_level.Nurse_levelDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.yyzx.controller.admin.nurse_level.vo.*;

/**
 * 护理级别 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface Nurse_levelMapper extends BaseMapperX<Nurse_levelDO> {

    default PageResult<Nurse_levelDO> selectPage(Nurse_levelPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<Nurse_levelDO>()
                .likeIfPresent(Nurse_levelDO::getLevelName, reqVO.getLevelName())
                .eqIfPresent(Nurse_levelDO::getLevelStatus, reqVO.getLevelStatus())
                .betweenIfPresent(Nurse_levelDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(Nurse_levelDO::getId));
    }

}